<?php
//定义本系统的相对路径根部
/*
if(!defined(ABSPATH)) {
	define('ABSPATH',dirname(__FILE__).'/');
}
$isSiteConfigPHP=false;
if(file_exists(ABSPATH."appData/site.config.php"))
{
	$isSiteConfigPHP=true;
    include_once (ABSPATH."appData/site.config.php");
}*/
//if($isSiteConfigPHP&&$SiteAllianceid!=""&&$SiteSid!=""&&$SiteSiteKey!=""&&$SiteAllianceid_Uid!=""){
	//site.config.php中配置联盟信息后，启用站点的配置信息
	//define('Allianceid',86070);//$SiteAllianceid
    //define('Sid',4397);
    define('Allianceid','4397');//$SiteAllianceid
    define('Sid','86070');
	define('SiteKey',"b11691e9aee54924ac73412d41280f3c");
    define('Allianceid_Uid','卡麦旅游');
    define('UnionSite_ShortName','卡麦');//定义网站发短信通知时的简称
//}else{}
$ServiceUrlCtripOpenAPI="http://openapi.ctrip.com";

//国际机票搜索
	define('OTA_IntlFlightSearch_Url',$ServiceUrlCtripOpenAPI.'/Flight/IntlFlight/OTA_IntlFlightSearch.asmx');
	//国内酒店搜索-lh
	define('OTA_PingSearch_Url',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_HotelSearch.asmx');
	define('OTA_HotelDescriptiveInfo',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_HotelDescriptiveInfo.asmx');//酒店房型
	define('OTA_HotelRatePlan',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_HotelRatePlan.asmx');//酒店价格查询
	define('D_HotelDetail',$ServiceUrlCtripOpenAPI.'/Hotel/D_HotelDetail.asmx');//酒店详情
	define('D_HotelSearch',$ServiceUrlCtripOpenAPI.'/Hotel/D_HotelSearch.asmx');//酒店详情
	define('OTA_HotelAvail',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_HotelAvail.asmx');//3.7.2.7. 可订检查OTA_HotelAvail
	define('OTA_HotelRes',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_HotelRes.asmx');//3.7.2.8. 订单生成 OTA_HotelRes
	define('OTA_UserUniqueID',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_UserUniqueID.asmx');//3.7.2.8. 订单生成 OTA_HotelRes
	define('OTA_HotelResNotif',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_HotelResNotif.asmx');//3.7.2.10. 订单变化查询 OTA_HotelResNotif
	define('OTA_Read',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_Read.asmx');//3.7.2.11. 订单详情查询 OTA_Read
	define('D_HotelOrderDetail',$ServiceUrlCtripOpenAPI.'/Hotel/D_HotelOrderDetail.asmx');//3.7.2.11. 订单详情查询 OTA_Read
	define('OTA_Cancel',$ServiceUrlCtripOpenAPI.'/Hotel/OTA_Cancel.asmx');//3.7.2.9. 订单取消 OTA_Cancel



//定义本系统的对于API2.0采用的请求模式：httpRequest/soap(如果PHP的服务器上没有开启支持SOAP的功能，则用httpRequest)
	define('System_RequestType','httpRequest');//soap  httpRequest


//定义首页团购获取距离今天多少天内的产品
	define('TuanEndDate_Distance','7');


//添加分销权限控制类
include_once ('common/rightControl.php');
//添加请求控制类（http请求还是soap请求）
include_once ('common/commonRequestData.php');
//工具类
include_once ('common/toolExt.php');
//http请求模式类
include_once ('common/httpRequestData.php');
//soap请求模式类
include_once ('common/soapData.php');
//http请求的类
include_once ('common/HttpRequest.php');
//工具类
include_once ('common/getDate.php');
//解析酒店API2.0返回的字符串为XML
include_once ('common/RequestDomXml.php');

//51book 参数定义
//http://ws.51book.com:8000/ltips/services/getAvailableFlightWithPriceAndCommisionServiceRestful1.0/getAvailableFlightWithPriceAndCommision
define('GN_FLIGHT_SEARCH_URL', 'http://ws.51book.com:8000/ltips/services/getAvailableFlightWithPriceAndCommisionServiceRestful1.0/getAvailableFlightWithPriceAndCommision');
//define('GN_FLIGHT_SEARCH_URL', 'http://wstest.51book.com:55779/ltips/services/getAvailableFlightWithPriceAndCommisionServiceRestful1.0/getAvailableFlightWithPriceAndCommision');
define('AGENCYCODE', 'JSKM');
define('SAFECODE', '3EB*j4ki');
//define('AGENCYCODE', 'SDFH');
//define('SAFECODE', 'vvFsiRcB');
//http://ws.tongyedns.com:8000/ltips/services/getPolicyServiceRestful1.0/getPolicy
define('GN_FLIGHT_ZHENGCI_URL', 'http://wstest.51book.com:55779/ltips/services/getPolicyServiceRestful1.0/getPolicy');//51政策接口 
//http://ws.tongyedns.com:8000/ltips/services/createOrderByPassengerServiceRestful1.0/createOrderByPassenger
define('GN_FLIGHT_TICKETS_URL', 'http://wstest.51book.com:55779/ltips/services/createOrderByPassengerServiceRestful1.0/createOrderByPassenger');

define('GN_FLIGHT_NUMBER', 100);//一次出票订单数


//线路预定
define('LINE_MANGGO_YD', 'http://api.mangocity.com/vi/receive.shtml');


?>